<%@page pageEncoding="UTF-8" %>
<%@page import="com.dmx.fw.web.util.Helper"%>
<%@ include file="/WEB-INF/core/common/taglibs.jsp"%>
<script langauge="javascript">
		      document.errMsgBlockId = 'messageId';
	function showMessage(message){
		document.getElementById('errorTr').style.display='';
		document.getElementById('errorMsg').innerHTML=message;
		document.getElementById('messageId_body_tr').style.display='none';
	}
</script>
<tr>
	<td height="3" colspan="3"></td>
</tr>
	<tr style="display: none" id="errorTr"><td colspan="3" align="middle" class="errorTable" width="98%">
		<table width="100%" cellpadding="0" cellspacing="5" id="messageId_body_td"
			align="center">
					<tr>
						<td align="left" valign="middle" class="black">
							&nbsp;&nbsp;<img src="${ctx}/core/images/suggest1.gif" />&nbsp;<span id="errorMsg"></span>
						</td>
					</tr>			
		</table>
	</td></tr>
 	<s:if test="%{(#session.msgList!=null && #session.msgList.size != 0) ||
		(#session.GLOBAL_ERROR_INFO_KEY!=null && #session.GLOBAL_ERROR_INFO_KEY.size!=0) ||
		(#session.GLOBAL_SUCCESS_INFO_KEY!=null && #session.GLOBAL_SUCCESS_INFO_KEY.size!=0) ||
		(#session.GLOBAL_DETAIL_ERROR_INFO_KEY!=null &&
		#session.GLOBAL_DETAIL_ERROR_INFO_KEY.size!=0)}">
		<tr id="messageId_body_tr" style="display: ">
 	</s:if>
 	<s:else>
 		<tr id="messageId_body_tr" style="display: none">
 	</s:else>
 	
 	<s:if test="%{#session.GLOBAL_SUCCESS_INFO_KEY!=null &&
		#session.GLOBAL_SUCCESS_INFO_KEY.size!=0}">
		<td colspan="3" align="middle" class="rightTable" width="98%"
			id="messageId_msgColor_td">
 	</s:if>
 	<s:else>
 		<td colspan="3" align="middle" class="errorTable" width="98%"
			id="messageId_msgColor_td">
 	</s:else>
		<table width="100%" cellpadding="0" cellspacing="5" id="messageId_body_td"
			align="center">
			<s:if test="%{#session.GLOBAL_SUCCESS_INFO_KEY!=null && #session.GLOBAL_SUCCESS_INFO_KEY.size!=0}">
				<s:iterator value="#session.GLOBAL_SUCCESS_INFO_KEY" var="msg">
					<tr>
						<td align="left" valign="middle" class="black">
							&nbsp;&nbsp;
						<img src="${ctx}/core/images/right.gif" />
							&nbsp;${msg}
						</td>
					</tr>
				</s:iterator>
 			</s:if>
 			<s:elseif test="%{#session.msgList!=null && #session.msgList.size != 0}">
 				<s:iterator value="#session.msgList" var="msg">
					<tr>
						<td align="left" valign="middle" class="black">
							&nbsp;&nbsp;
							<img src="${ctx}/core/images/suggest1.gif" />
							&nbsp;${msg}
						</td>
					</tr>
				</s:iterator>
 			</s:elseif>
 			<s:elseif test="%{#session.GLOBAL_ERROR_INFO_KEY!=null}">
 				<s:iterator value="#session.GLOBAL_ERROR_INFO_KEY" var="msg">
					<tr>
						<td align="left" valign="middle" class="black">
							&nbsp;&nbsp;
							<img src="${ctx}/core/images/suggest1.gif" />
							&nbsp;${msg}
						</td>
					</tr>
				</s:iterator> 				
 			</s:elseif>
 			<s:elseif test="%{#session.GLOBAL_DETAIL_ERROR_INFO_KEY!=null}">
 				<s:iterator value="#session.GLOBAL_DETAIL_ERROR_INFO_KEY" var="msg">
					<tr>
						<td align="left" valign="middle" class="black">
							&nbsp;&nbsp;
							<img src="${ctx}/core/images/suggest1.gif" />
							<s:set var="infoDetailKey" value="#session.GLOBAL_DETAIL_ERROR_INFO_KEY"></s:set>
							&nbsp;${infoDetailKey}
						</td>
					</tr>
				</s:iterator> 
 			</s:elseif>
		</table>

<tr>
	<td height="3" colspan="3"></td>
</tr>
<%
Helper.clearExecuteMsg();
%>